<!--{template user/header}-->
<div style="height:30px;">&nbsp;</div>
<table class="list-table" border="0" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th colspan="8" class="lt-th" style="position:relative;">
				<strong>充值记录</strong>
				<select id="status" style="position:absolute;right:1px;top:1px;">
					<option value="0">所有记录</option>
					<option value="1" {if $status == 1}selected{/if}>未完成</option>
					<option value="2" {if $status == 2}selected{/if}>已完成</option>
				</select>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr class="lt-title">
			<th class="first" width="100">单号</th>
			<th width="80">金额</th>
			<th width="80">手续费</th>
			<th width="80">总金额</th>
			<th width="120">创建时间</th>
			<th width="120">完成时间</th>
			<th width="80">状态</th>
			<th width="80" class="last">操作</th>
		</tr>
		{loop $list $log}
		<tr>
			<td class="lt-td first">$log['sn']</td>
			<td class="lt-td tl">$log['money']</td>
			<td class="lt-td">$log['payment_fee']</td>
			<td class="lt-td">$log['payment_money']</td>
			<td class="lt-td">$log['create_time']</td>
			<td class="lt-td">
			{if $log['is_paid'] == 1}
			$log['update_time']
			{/if}
			</td>
			<td class="lt-td">
			{if $log['is_paid'] == 1}
			已完成
			{else}
			未完成
			{/if}
			</td>
			<td class="lt-td last">
			{if $log['is_paid'] == 0}
			<a href="{eval echo U('site/recharge',array('id'=>$log['id']))}">修改</a>
			{/if}
			</td>
		</tr>
		{/loop}
	</tbody>
	<!--{if $pager['page_count'] > 1}-->
	<tfoot>
		<tr>
			<td colspan="8" class="pages">
				<!--{subtemplate user/pages}-->
			</td>
		</tr>
	</tfoot>
	<!--{/if}-->
</table>

<script type="text/javascript"> 
jQuery(function($){
	$("#status").change(function(){
		var url = "{eval echo U('site/money',array('status'=>'###'))}";
		var status = this.value;
		var fun = function(){
			location.href= url.replace("###",status);
		}
		setTimeout(fun,1);
	});
});
</script>
<!--{template user/footer}-->